import { XML } from 'mixly';
import PICO_CONFIG_TEMPLATE from '../templates/html/board-config-message.html';

export const EnMsg = {};

EnMsg.PICO_CONFIG_INTRODUCE = 'For detailed information, please refer to';

EnMsg.PICO_CONFIG_MESSAGE_flash = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'Flash size',
    message: 'This option is used to select the flash memory size. This is controlled by specifying the size allocated for the file system.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#flash-size',
    name: '#Flash Size'
});

EnMsg.PICO_CONFIG_MESSAGE_freq = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'CPU clock frequency',
    message: 'On this option you can select the CPU clock frequency. If it fails at anything higher, hold down BOOTSEL while plugging in to enter update mode and try a lower overclock.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#cpu-speed',
    name: '#CPU Speed'
});

EnMsg.PICO_CONFIG_MESSAGE_usbstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'USB Stack',
    message: 'This option defaults to the simpler Pico-SDK version of the USB stack, including serial over USB, and support for auto-reset uploads. If you need to enable a more powerful USB stack, choose Adafruit TinyUSB, but you must include the TinyUSB library in your TinyUSB program.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/usb.html#usb-arduino-and-adafruit-tinyusb',
    name: '#USB Stack'
});

EnMsg.PICO_CONFIG_MESSAGE_dbgport = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'Debug Port',
    message: 'Select the desired debug port for the core so debug messages can be printed to the serial port. Selecting a port for debug output does not prevent the sketch from using it for normal operation.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-port',
    name: '#Debug Port'
});

EnMsg.PICO_CONFIG_MESSAGE_dbglvl = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'Debug Level',
    message: 'Once again this is done by adding the desired build flags directly. When you want to define multiple build flags, they must be accumulated on a single line or in newline-delimited expressions.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-level',
    name: '#Debug Level'
});

EnMsg.PICO_CONFIG_MESSAGE_ipbtstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'IP/Bluetooth Stack',
    message: 'This option uses IPV4 by default. The IP stack supports not only IPV4 but also IPV6; the Bluetooth stack supports Bluetooth Classic (BTC) and Bluetooth Low Energy (BLE). Please configure according to your actual situation.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#ip-stack',
    name: '#IP/Bluetooth Stack'
});

EnMsg.PICO_CONFIG_MESSAGE_uploadmethod = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'Upload method',
    message: 'This option is used to select a specific upload method for uploading programs. If you have already built the corresponding upload environment, please configure this option according to the actual situation. If you do not know how to configure this option, please keep the default option.',
    moreInfo: EnMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/install.html#uploading-sketches-with-picotool',
    name: '#Upload Method'
});

export const EnCatgories = {
    'catUsb': 'USB serial'
};